package com.xiaxiang.xiawan.Ui;

import android.app.Activity;

import com.vondear.rxtools.view.dialog.RxDialogLoading;
import com.xiaxiang.xiawan.R;

/**
 * Created by Administrator on 2017-10-29.
 */

public class WaitDialog extends RxDialogLoading {
    public WaitDialog(Activity context) {
        super(context);
        String text = context.getString(R.string.GetData);
        setTipText(text);
    }

    public void showDialog(){
        if(!isShowing()) {
            this.show();
        }
    }

    public void closeDialog(){
        if(isShowing()){
            this.dismiss();
        }
    }
}
